package com.example.woof.ui.theme

import android.os.Build
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb

internal fun calculateLegacyNavBarColor(): Int {
    return when {
        Build.VERSION.SDK_INT >= 29 -> Color.Transparent.toArgb()
        Build.VERSION.SDK_INT >= 26 -> Color(0xFF, 0xFF, 0xFF, 0x63).toArgb() // 半透明白色
        else -> Color(0x00, 0x00, 0x00, 0x50).toArgb() // 半透明黑色
    }
}